package wql.demo02;

/**
 * @author wql
 * @version 1.0
 * @date 2022/10/25 14:20
 */

public class Test01 {
    public static void main(String[] args) {
        Food<Integer> food = new Food<>(12,23);
        Integer a = food.getA();
        System.out.println("a = " + a);
        System.out.println("food = " + food);

        Food<String> food1 = new Food<>("米饭","大锅菜");
        String b = food1.getB();
        System.out.println("b = " + b);
        System.out.println("food1 = " + food1);
    }
}
